include ../Makefile.config

UTILS_FILES = ../utils/*.o
PRCND_FILES = ../precond/*.o
MG_FILES    = ../MG/*.o
ITERS_FILES = ../iter_solver/*.o

ALL_FILES = $(UTILS_FILES) \
			$(PRCND_FILES) \
			$(MG_FILES)	   \
			$(ITERS_FILES)

all: libUnstructmg.so

libUnstructmg.so : $(ALL_FILES)
	@echo  "Building libUnstructmg ... "; \
	rm -f $@ ;\
	$(CXX) -shared $(ALL_FILES) -o $@ $(LFLAGS)

clean:
	rm -f *.o libUnstructmg.*

distclean: clean